<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    
    <title>数据绑定</title>
    <script type="text/javascript" src="../js/vue.js"></script>
</head>
<body>
    <div id="di">
        单向数据绑定：<input type="text" :value="name">
        <br>
        双向数据绑定：<input type="text" v-model:value="name">
    </div>
</body>

<script>
    new Vue({
        el:'#di',
        data:{
            age:19,
            name:'原子弹爆炸'
        }
    })
    
</script>
</html>